package com.vrv.vap.baseline.service.impl;

import com.vrv.vap.baseline.config.ExcelTemplateConfig;
import com.vrv.vap.baseline.entity.AssetType;
import com.vrv.vap.baseline.mapper.AssetTypeMapper;
import com.vrv.vap.baseline.service.AbstractExcelExportService;
import com.vrv.vap.baseline.util.FileOperationUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.IOException;
import java.util.List;

@Service
public class AssetTypeExportService extends AbstractExcelExportService<AssetType> {
    @Autowired
    private AssetTypeMapper assetTypeMapper;

    protected AssetTypeExportService(FileOperationUtil fileOperationUtil, ExcelTemplateConfig excelTemplateConfig) {
        super(fileOperationUtil, excelTemplateConfig, "asset_type");
    }

    @Override
    protected List<AssetType> getAllData() {
        return assetTypeMapper.selectAll();
    }

    @Override
    protected void processData(List<AssetType> dataList, String format) throws IOException {

    }


    @Override
    protected Class<AssetType> getEntityClass() {
        return AssetType.class;
    }

}